package com.example.demo.controller;

import com.example.demo.response.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxiaoyuan
 * 2020/9/23 14:26
 **/
@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping
    public ApiResponse get() {
        return ApiResponse.success("Hello World");
    }
}
